package com.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * 关注表
 *
 * @create 2024/4/13
 */
@TableName("subscribe")
@Data
@EqualsAndHashCode(callSuper = false)
public class Subscribe {


    private static final long serialVersionUID = -48157238791857969L;

    /**
     * 关注ID：
     */
    @TableId(value = "subscribe_id", type = IdType.AUTO)
    private Integer subscribe;

    /**
     * 关注人：
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 被关注人：
     */
    @TableField(value = "source_id")
    private Integer sourceId;

    /**
     * 创建时间：
     */
    @TableField(value = "create_time")
    private Timestamp createTime;

    /**
     * 更新时间：
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;

    /**
     * 点赞状态:1为点赞，0已取消
     */
    @TableField(value = "status")
    private Integer status;

}
